import request from '@/utils/request'

const head = "application/json"
export default {
  // 上传文件
  uploadFile(data = {}) {
    return request({
      url: `/AmpCompanyTemporaryController/parseFile`,
      method: 'post',
      data,
    })
  },

  // 查询解析之后的企业树
  getCompanyTree(data) {
    return request({
      url: `/AmpCompanyTemporaryController/getCompany`,
      method: 'post',
      datatype: 'json',
      data
    })
  },

  // 查询企业数
  getCompanyLevel(data) {
    return request({
      url: `/AmpCompanyTemporaryController/getCompanyLevel`,
      method: 'post',
      data
    })
  },


  // 测试传递JSON格式的数据
  getRequestBody(data) {
    return request({
      url: `/AmpCompanyTemporaryController/getRequestBody`,
      method: 'post',
      data
    })
  },

  // 测试传递JSON格式的数据
  postRequestBody(data) {
    return request({
      url: `/advasset/ampFinancialRateHx/postRequestBody`,
      method: 'post',
      data
    })
  },

}
